-- GENERATED SPELL FOR [Kutube'sa] --


function spell0_28494(pUnit, Event) --@Heroic Leap,n/a--
pUnit:FullCastSpellOnTarget(57793,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28494', 0, 1)
end

function spell1_28494(pUnit, Event) --@Vicious Rend,n/a--
pUnit:FullCastSpellOnTarget(35144,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28494', 15000, 1)
end

function spell2_28494(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15578,pUnit)
pUnit:RegisterEvent('Sorts_28494', 604, 1)
end

function spell3_28494(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(49807,pUnit)
pUnit:RegisterEvent('Sorts_28494', 2000, 1)
end

function Sorts_28494(pUnit, Event)
local choix_sorts_28494 = math.random(0, 3)
if choix_sorts_28494 == 0 then
pUnit:RegisterEvent('spell0_28494', 1, 1)
end
if choix_sorts_28494 == 1 then
pUnit:RegisterEvent('spell1_28494', 1, 1)
end
if choix_sorts_28494 == 2 then
pUnit:RegisterEvent('spell2_28494', 1, 1)
end
if choix_sorts_28494 == 3 then
pUnit:RegisterEvent('spell3_28494', 1, 1)
end
end

function mob28494_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28494', math.random(1500, 3000), 1)
end

function mob28494_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28494_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28494_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28494, 1, 'mob28494_Action')
RegisterUnitEvent(28494, 2, 'mob28494_Leave')
RegisterUnitEvent(28494, 3, 'mob28494_Kill')
RegisterUnitEvent(28494, 4, 'mob28494_Die')
